package com.hf.order

import org.joda.time.LocalDate

import com.hf.security.OrderUser

class UserOrderHistory {

	OrderUser user
	Date orderDate

	static constraints = {
		user(nullable:false)
		orderDate(nullable:false)
	}

	static mapping = { sort orderDate : "desc" }

	String toString() {
		LocalDate date = new LocalDate(orderDate)
		return "$date - 星期 $date.dayOfWeek"
	}
}
